---
title: Missing value for client:media directive.
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---

> **MissingMediaQueryDirective**: Media query not provided for `client:media` directive. A media query similar to `client:media="(max-width: 600px)"` must be provided

## 무엇이 잘못되었나요?

`client:media` 지시어를 사용할 때는 [미디어 쿼리](https://developer.mozilla.org/ko/docs/Web/CSS/CSS_media_queries/Using_media_queries) 매개변수가 필요합니다.

```astro
<Counter client:media="(max-width: 640px)" />
```

**더 보기:**

-  [`client:media`](/ko/reference/directives-reference/#clientmedia)